package com.ruoyi.supplier.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 售后单记录业务对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RefundBo extends BaseEntity {

    /**
     * 售后单id
     */
    @NotNull(message = "售后单id不能为空", groups = { EditGroup.class })
    private Integer refundId;

    /**
     * 供货商id
     */
    @NotNull(message = "供货商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer supplierId;

    /**
     * 供货商 商户ID
     */
    @NotNull(message = "供货商 商户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long merchantId;

    /**
     * 售后类型(10退货退款 20换货 30退款)
     */
    @NotNull(message = "售后类型(10退货退款 20换货 30退款)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 申请原因(说明)
     */
    @NotBlank(message = "申请原因(说明)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applyDesc;

    /**
     * 审核状态(0待审核 10已同意 20已拒绝)
     */
    @NotNull(message = "审核状态(0待审核 10已同意 20已拒绝)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isAgree;

    /**
     * 拒绝原因(说明)
     */
    @NotBlank(message = "拒绝原因(说明)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String refuseDesc;

    /**
     * 售后单状态(0进行中 10已拒绝 20已完成 30已取消)
     */
    @NotNull(message = "售后单状态(0进行中 10已拒绝 20已完成 30已取消)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 退款金额
     */
    @NotNull(message = "退款金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal refundMoney;

    /**
     * 收货状态(0待收货 10已收货 20已退回)
     */
    @NotNull(message = "收货状态(0待收货 10已收货 20已退回)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isReceipt;

    /**
     * 拒收原因(说明)
     */
    @NotBlank(message = "拒收原因(说明)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String refuseReceiptDesc;

    /**
     * 退款状态(0未退款 10已退款)
     */
    @NotNull(message = "退款状态(0未退款 10已退款)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isRefund;


}
